home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1996 #15
/
Monster Media Number 15 (Monster Media)(July 1996).ISO
/
win_utl2
/
pspa370a.zip
/
EXAMPL12.POM
< prev
next >
Wrap
Text File
|
1996-04-26
|
2KB
|
59 lines
;
; NOTE: A quick-reference summary of POM commands appears in QUICKREF.POM
;
; This POM file uses the APPEND command to demonstrate its function.
; If you study this POM file, you'll notice that (at least for this
; application) it would be a lot simpler to do the appending in the
; OUTEND commands.
;
;-------------------------------------------------------------------------------
;
; Get first name (from first character to first slash)
;
PARSE first $FLINE "" "/"
;
; Get last name (from first slash to second slash)
;
PARSE last $FLINE "/" "2*/"
;
; Append first and last name (with a space between them) and add a comma
;
APPEND name first " " last ","
;
; Get street address and add a comma to the end
;
PARSE street $FLINE "2*/" "3*/"
APPEND street street ","
;
; Get city and state, then combine them with a comma in between
;
PARSE city $FLINE "3*/" "4*/"
PARSE state $FLINE "4*/" "5*/"
APPEND cs city ", " state
;
; Get phone number, but leave in the slashes (the "I" means "include")
;
PARSE phone $FLINE "5*/" "6*/" "I"
;
; Get the amount owed (the "" means "to the last character")
;
PARSE amount $FLINE "7*/" ""
;
; Output address, followed by a blank line
;
OUTEND |{name}
OUTEND |{street}
OUTEND |{cs}
OUTEND |
;
; Output the phone number and the amount owed
;
OUTEND |{phone}${amount}
;
; Insert a dashed separator line between two blank lines
;
OUTEND |
OUTEND |-----------------------------------------------------
OUTEND |